package com.css.fxfzypg.modules.model.repository;

import com.css.fxfzypg.modules.model.entity.DataPbeLosses;
import com.css.fxfzypg.modules.model.entity.EconomicLosses;
import com.css.fxfzypg.modules.model.vo.EconomicVO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author DBJ
 */
public interface EconomicLossesRepository {
    Map<String, Object> findPage(EconomicVO vo, int curPage, int pageSize);

    EconomicLosses getModelById(String id);

    EconomicLosses getDefaultModel();
    List<EconomicLosses> getByDivision(String province, String city, int isNa);

    void save(EconomicLosses economicLosses);

    void update(EconomicLosses economicLosses);

    void delete(String userId, Date date, String id);

    void deleteByTaskId(String taskId);

    void saveDataPbeLosses(DataPbeLosses losses);

    List<Map<String, Object>> getPbeLossesByTaskId(String taskId,String range);

    public List<DataPbeLosses> getPbeLosses(String taskId,String dzIntensity);

    DataPbeLosses findByTaskIdLimit(String taskId);

    int saveDataPbeLossesList(List<DataPbeLosses> list);

    void createLossesFqRel(String taskId);

    Integer countByProvince(String province);

    Integer countByYearPrefixLike(String taskYear, String provinceId);

}
